<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
    <title>用户详情</title>
    <link href="../layui-v2.5.6/css/layui.css" rel="stylesheet">
</head>
<body>
<body>
<form action="" class="layui-form layui-form-pane" id="saveForm" lay-filter="saveForm" method="post"
      style="margin: 1%;">
    <div class="layui-form-item">
        <label class="layui-form-label" title="用户名">用户名</label>
        <div class="layui-input-inline">
            <input class="layui-input" readonly="readonly" value="${user.userName}"/>
        </div>
        <label class="layui-form-label" title="密码">密码</label>
        <div class="layui-input-inline">
            <input class="layui-input" readonly="readonly" value="${user.passWord}"/>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label" title="角色">角色</label>
        <div class="layui-input-block">
            <#list roleList as role>
                <input lay-skin="primary" title="${role.roleName}" type="checkbox"
                        <#if user.roleList?seq_contains(role)>
                            checked <#else> unchecked
                        </#if> disabled="">
            </#list>
        </div>
    </div>
</form>
</body>
<script src="../jquery/jquery-3.4.1.js"></script>
<script src="../layui-v2.5.6/layui.js"></script>
<script type="text/javascript">
    $(function () {
        layui.use(['form'], function () {
            var form = layui.form;
            var layer = layui.layer;
        });
    })
</script>
</html>